package com.mashibing.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mashibing.common.algorithm.TreeNode;
import com.mashibing.common.utils.PageUtils;
import com.mashibing.mall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author ROGzhongyang
 * @email inspiron149@163.com
 * @date 2024-11-18 18:50:24
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取三级分类树
     * @param params
     * @return
     */
    List<TreeNode<CategoryEntity>> getCategoryTree(Map<String, Object> params);

    /**
     * 根据分类 id 列表批量删除分类
     * @param catIds
     */
    void removeCategoryByIds(List<Long> catIds);

    void updateDetail(CategoryEntity category);

    Long[] findCatelogPath(Long catelogId);
}

